import Vue from 'vue'
import Router from 'vue-router'
import HomeIndex from '@/pages/HomeIndex'
import home_index from '@/pages/home/index'
import home_pass from '@/pages/home/pass'
import admin_login from '@/pages/admin_login'

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/admin/login',
        name: 'admin_login',
        component: admin_login,
    }, {
        path: '/admin/home',
        name: 'HomeIndex',
        component: HomeIndex,
        children: [{
            path: '/admin/home/index',
            name: 'home_index',
            component: home_index
        }, {
            path: '/admin/home/passwd',
            name: 'home_pass',
            component: home_pass
        }]
    }]
})